<?php if (!defined('THINK_PATH')) exit();?><html>
<head>
<title>公告管理:修改</title>
    <script src="/drclothes/Public/js/jquery.min.js"></script>
<script src="/drclothes/Public/js/bootstrap.min.js"></script>
<link href="/drclothes/Public/css/bootstrap.min.css" rel="stylesheet">
<link href="/drclothes/Public/css/admin.css" rel="stylesheet">
<script>
    $(document).ready(function () {
    //高亮当前选中的导航
    var myNav = $(".nav-sidebar > li > a");
    for (var i = 0; i < myNav.length; i++) {
        var links = myNav.eq(i).attr("href");
        var myURL = document.URL;
        var durl=/http:\/\/([^\/]+)\//i;
        domain = myURL.match(durl);
        console.log(myURL.match(durl));
        var result = myURL.replace("http://"+domain[1],"");
        if (links == result) {
            myNav.eq(i).parents("li").addClass("active");
        }
    }
});
</script>
</head>

<body style="background-color:#333;padding-top:50px;min-width: 1366px;">
    <div class="container-fluid">
        <div class="row">
            <div class="col-xs-2 padding1" style="padding-top:0px;min-height:100%;">
                <ul class="nav nav-sidebar body1" style="margin-right:50px;margin-left:50px;min-height:50%;border-radius:50px;padding-top:15%;" align="center">
                    <li><a href="/drclothes/index.php/admin/Order"><font style="font-family:'Yejing';font-size:25px;">1&nbsp;&nbsp;</font>订单管理</a></li>
                    <li><a href="/drclothes/index.php/admin/drclothes"><font style="font-family:'Yejing';font-size:25px;">2&nbsp;&nbsp;</font>商品管理</a></li>
                    <li><a href="/drclothes/index.php/admin/User"><font style="font-family:'Yejing';font-size:25px;">3&nbsp;&nbsp;</font>用户管理</a></li>
                    <li><a href="/drclothes/index.php/admin/News"><font style="font-family:'Yejing';font-size:25px;">4&nbsp;&nbsp;</font>公告管理</a></li>
                    <li><a href="/drclothes/index.php/admin/Comment"><font style="font-family:'Yejing';font-size:25px;">5&nbsp;&nbsp;</font>评论管理</a></li>
                </ul>
                <div class="nav nav-sidebar body1" style="margin-right:50px;margin-left:50px;margin-top:40%;min-height:30%;border-radius:50px;padding-top:13%;" align="center">
                    <h1 class="glyphicon glyphicon-user"></h1>
                    <h3>管理员：<?php echo I('session.usernameA'); ?></h3>
                    <h3><a href="/drclothes/index.php/admin/form/logout">退出</a></h3>
                </div>
            </div>
            <div class="col-xs-10 main body1">
          <p class="pull-right" style="margin-top: 20px;"><a class="btn btn-info" href="/drclothes/index.php/admin/News">返回</a></p>
          <h2 class="sub-header">公告管理:修改公告<small>#<?php echo ($list["id"]); ?>:<?php echo ($list["title"]); ?></small></h2>
          <form class="form-horizontal" action="/drclothes/index.php/admin/News/change_process" method="post" autocomplete="off">
          <!-- 文本框-->
          <div class="form-group">
            <label class="col-md-4 control-label" for="title">公告标题</label>  
            <div class="col-md-4">
            <input id="id" name="id" type="hidden"  value="<?php echo ($list["id"]); ?>" class="form-control input-md" />

            <input id="title" name="title" type="text" value="<?php echo ($list["title"]); ?>" class="form-control input-md" required />
              
            </div>
          </div>

          <!-- 文本域 -->
          <div class="form-group">
            <label class="col-md-4 control-label" for="content">内容</label>
            <div class="col-md-4">                     
              <textarea class="form-control" id="content" name="content" rows="10" placeholder="在此输入内容" required><?php echo ($list["content"]); ?></textarea>
            </div>
          </div>

          <!-- 双按钮 -->
          <div class="form-group">
            <label class="col-md-4 control-label" for="">操作</label>
            <div class="col-md-8">
              <button type="submit" class="btn btn-info">提交</button>
              <!-- <button type="reset" class="btn btn-default">还原</button> -->
            </div>
          </div>
          </form>

        </div>
      </div>
    </div>
</body>
</html>